package com.shiyang.decorator.mycoffee;

/**
 * @author shiyang date: 2020/9/11
 */
public abstract class Drink {

    protected String des; // 描述
    protected float price;

    // 计算费用的抽象方法 由各个子类来实现
    public abstract float cost();

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
